<div class = "page_title">
<p>师生活动情况查询</p>
</div>
<div class="s_header"> 
	<div class="s_form_wrap" >
		<form action="<?php echo urlToAction("statistic", "activityquery");?>" method="post">
			<div id="query_bar">
				</span>
				<span><span class="field_name">开始时间：</span><input class="hasdatepicker" value="<?php echo (isset($data['beginTime']))?$data['beginTime']:date("Y-m-d");?>" id="start_time_input" name="beginTime" type="text" /></span>
				<span><span class="field_name">结束时间：</span><input class="hasdatepicker" value="<?php echo (isset($data['endTime']))?$data['endTime']:date("Y-m-d");?>" id="end_time_input" name="endTime" type="text" /></span>
				<span><div class="form_post button">查询</div></span>
			</div>
		</form>
	</div>
</div>
<?php if(isset($data["items"])):?>
<div class="s_content">
	<div class="s_table_head">
		<div id="title1" class ="head_title WIDTH40 ">序号</div>
		<div id="title2" class ="head_title WIDTH70">活动类型</div>
		<div id="title3" class ="head_title WIDTH70">子类型</div>
		<div id="title4" class="head_title WIDTH70">主办院系</div>
		<div id="title5" class="head_title WIDTH100">活动名称</div>
		<div id="title6" class="head_title WIDTH90">主持(讲)人</div>
		<div id="title7" class="head_title WIDTH80">开始时间</div>
		<div id="title8" class="head_title WIDTH80">结束时间</div>
		<div id="title9" class="head_title WIDTH80">地点</div>
	</div>
	<div class = "s_table_content">
		<?php
		$list = array();
		if(isset($data['items']))
			$list = $data['items'];
		$i=1;
		foreach ($list as $row):
		
		?>
		<div class="s_line <?php if($i%2 == 0) echo "highlight"?>">
			<div class="WIDTH40"><?php echo $i;?></div>
			<div class="WIDTH70"><?php echo getActivityType($row->activityType);?></div>
			<div class="WIDTH70"><?php echo getActivitySubType($row->type);?></div>
			<div class="WIDTH70"><?php echo getInstitute($row->department);?></div>
			<div class="WIDTH100"><?php echo $row->name;?></div>
			<div class="WIDTH90"><?php echo $row->host;?></div>
			<div class="WIDTH80"><?php echo $row->activityBegin;?></div>
			<div class="WIDTH80"><?php echo $row->activityEnd;?></div>
			<div class="WIDTH80"><?php echo $row->location;?></div>
		</div>
		<?php $i++;
		endforeach;?>
	</div>
	<div class="operator clearfix">
			<a target='_blank' href='<?php $beginTime=$data['beginTime'];$endTime=$data['endTime'];echo urlToAction("statistic", "activityprint")."?beginTime=$beginTime&endTime=$endTime";?>'><div class="button">打印</div></a>
	</div>
</div>
<?php endif;?>
